package com.wskj.workbench.bo.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 购物车信息添加对象 tz_shop_cart
 *
 * @author wsdz
 * @date 2022-09-27
 */
@Data
@ApiModel("APP购物车信息规格添加对象")
public class AppTbShopCartSkuEditBo implements Serializable {

    @ApiModelProperty(value = "店铺ID")
    private Long shopId;

    /**
     * 原来的规格id
     */
    @ApiModelProperty(value = "原来的规格id")
    @NotNull(message = "原来的规格id不能为空")
    private Long skuId;

    /**
     * 修改后的规格id
     */
    @ApiModelProperty(value = "修改后的规格id")
    @NotNull(message = "修改后的规格id不能为空")
    private Long newSkuId;

    /**
     * 修改后的购买数量
     */
    @ApiModelProperty(value = "修改后的购买数量")
    @NotNull(message = "修改后的购买数量不能为空")
    private Integer number;
}
